package com.heima.behavior.controller;

import com.heima.behavior.dto.ReadBehaviorDto;
import com.heima.common.dto.ResponseResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.heima.behavior.service.IApReadBehaviorService;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * APP阅读行为表 前端控制器
 * </p>
 *
 * @author 王苑
 * @since 2022-08-04
 */
@RestController
@RequestMapping("/api/v1/read_behavior")
@Api(tags = "APP阅读行为表接口")
@CrossOrigin
public class ApReadBehaviorController{

    @Autowired
    private IApReadBehaviorService apReadBehaviorService;


    /**
     * 用户阅读行为记录
     * @param dto
     * @return
     */
    @PostMapping
    public ResponseResult read(@RequestBody ReadBehaviorDto dto){
        return apReadBehaviorService.read(dto);
    }






}
